<?php echo $this->doctype('XHTML1_STRICT'); ?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<?php 
$this->headMeta()->appendName('keywords', $this->config->user->metaKeywords->val)
                 ->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
                 ->appendHttpEquiv('Content-Language', 'en-US');             
                 
echo $this->headMeta() . "\n";
$this->headTitle($this->config->user->appTitle->val)
     ->headTitle(strip_tags($this->title))
     ->headTitle()->setSeparator(' - ');

echo "\n";
     
echo $this->headTitle() . "\n\n";
echo $this->headLink() . "\n\n";
echo $this->headScript() . "\n";

$this->overrideTranslation()->js(); 
echo "\n";
?>

</head>
<body>
    <input type="hidden" name="baseUrl" id="baseUrl" value="<?php echo $this->baseUrl(); ?>" />

    <div id="doc4" class="yui-t7">
        <div id="hd" role="banner" class="ui-widget-header ui-corner-top">
            <div class="authInfo"><?php echo $this->render('auth.phtml'); ?></div>
            <div id="appTitle">
                <img src="<?php echo $this->baseUrl(); ?>/public/images/bbcelogo.png" width="90" height="55" alt="<?php echo $this->config->user->appTitle->val; ?>" />
                <span><?php echo $this->config->user->appTitle->val; ?></span>
            </div>
        </div>
        <div id="bd">
            <div class="yui-g" role="navigation" id="navBar">
                <?php echo $this->render('nav.phtml'); ?>
            </div>
            
            <div class="yui-g">
                <div class="content" role="main">
                    <?php if (!empty($this->messages) != 0) : ?>
                        <div id="systemMessages" class="ui-state-highlight ui-corner-all">
                            <span class="ui-icon ui-icon-info"></span>
                                <?php foreach ($this->messages as $m) : ?>
                                    <?php echo $this->translate($m); ?><br />
                                <?php endforeach; ?>
                        </div>
                   <?php endif; ?>

                    <div id="pageTitle"><?php echo $this->title; ?></div>

                    <?php echo $this->layout()->content; ?>
                </div>
            </div>
            <?php $this->overrideTranslation()->link('Edit Text For This Page'); ?>
        </div>
        <div id="ft" class="ui-corner-bottom">
            <?php echo $this->render('footer.phtml'); ?>
        </div>
    </div>
    
</body>
</html>